﻿using RAP.Framework.Libary.DomTemplateBuilder.Interface;

namespace RAP.Framework.Libary.DomTemplateBuilder.Handler.Conditional
{
	/// <summary>
	/// 判断是否为null的Handler
	/// </summary>
	public class IsNullHandler : ConditionalHandler
    {
		protected override bool DoCompareValue ( object propertyValue, object rootParamObject, object parentParamObject, ITemplateRenderContext context )
		{
			return propertyValue == null;
		}
    }
}
